package com.heima.admin.controller.v1;

import com.heima.admin.service.AdWmSensitiveService;
import com.heima.apis.wemedia.ISensitiveClient;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.SensitiveDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("wemedia/api/v1/sensitive/")
public class AdSensitiveController {

    @Autowired
    private AdWmSensitiveService adWmSensitiveService;

    @PostMapping("list")
    public ResponseResult list(@RequestBody SensitiveDto sensitiveDto){
        return adWmSensitiveService.getList(sensitiveDto);
    }
}
